package io.math;


import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FilterOutputStream;

//数据流
public class Data1 {
    public static void main(String[] args) {
        try ( DataOutputStream a= new DataOutputStream(new FileOutputStream("D:\\workspace\\basic-chapter\\src\\io\\math\\a.txt"));){
            a.writeByte('s');
            a.writeBoolean(true);
            a.writeUTF("回家吃饭");

        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
